package com.example.productviewservicefeign.service;

import com.example.productviewservicefeign.dao.entity.Product;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class ProductClientFeignHystix implements ProductClientFeign{
    @Override
    public List<Product> listProducts() {
        List<Product> products=new ArrayList<>();
        products.add(new Product(11,"暂无数据",100));
        return products;
    }
}
